package com.hao.base;

public class StringTest {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("abcdefg");
        if(sb.indexOf("bc") != -1){
            System.out.println("存在");
        }
    }
}
